<?php /* Smarty version 2.6.26, created on 2010-11-16 18:15:57
         compiled from student_practices.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'student_practices.tpl', 28, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if (isset ( $this->_tpl_vars['info_action'] )): ?>
	<div class="info i_<?php echo $this->_tpl_vars['info_color']; ?>
">
		<?php echo $this->_tpl_vars['info_action']; ?>

	</div>
<?php endif; ?>

<!-- DO POPRAWIENIA-->

<h3><?php echo $this->_tpl_vars['title']; ?>
</h3>

<div class="table_div">
	<table class="practices_tab">
		<thead>
			<tr style="color:#789;font-weight: bold">
				<th>Lp.</th>
				<th>Imię</th>
				<th>Nazwisko</th>
				<th>Email</th>
				<th>Nazwa firmy</th>
				<th>Email firmy</th>
				<th>Akcje</td>
			</tr>
		</thead>
		<tbody>
		<?php if (! empty ( $this->_tpl_vars['practice_queue'] )): ?>
			<?php $_from = $this->_tpl_vars['practice_queue']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['practice'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['practice']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['pq']):
        $this->_foreach['practice']['iteration']++;
?>
			<tr style="background-color:<?php echo smarty_function_cycle(array('values' => "#F6F6F6,white"), $this);?>
">
				<td><?php echo $this->_foreach['practice']['iteration']; ?>
</td>
				<td><?php echo $this->_tpl_vars['pq']['student_name']; ?>
</td>
				<td><?php echo $this->_tpl_vars['pq']['student_surname']; ?>
</td>
				<td><?php echo $this->_tpl_vars['pq']['student_email']; ?>
</td>
				<td><?php echo $this->_tpl_vars['pq']['name']; ?>
</td>
				<td><?php echo $this->_tpl_vars['pq']['email']; ?>
</td>
				<td>
					<a href ="student_practices.php?p_id=<?php echo $this->_tpl_vars['pq']['practice_id']; ?>
&s_id=<?php echo $this->_tpl_vars['pq']['student_id']; ?>
&d_id=<?php echo $this->_tpl_vars['pq']['id']; ?>
" class="tip_trigger" ><span class="tip">Akceptuj praktykę.</span><img src="../images/tick.png"/></a>
					&nbsp
					<a href ="student_practices.php?delete_id=<?php echo $this->_tpl_vars['pq']['id']; ?>
" class="tip_trigger" ><span class="tip">Usuń praktykę.</span><img src="../images/cross.png"/></a>
				</td>
			</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
			<tr>
				<td colspan="7">Brak ofert praktyk do zaakceptowania</td>
			</tr>
		<?php endif; ?>
		</tbody>
	<table>
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>